<extend name="Base/common"/>
<!--<script type="text/javascript" src="/SG_Shopwechat/Public/Home/js/iscroll.js"></script>-->
<block name="TITLE"><title>采购申请</title></block>
<block name="body" >
    <header data-am-widget="header" class="am-header am-header-default am-header-fixed">
        <div class="am-header-left am-header-nav">
            <a href="{:U('Purchase/index')}" class="">
                <i class="am-header-icon am-icon-home" style="font-size: 40px;"></i>
            </a>
        </div>
        <h1 class="am-header-title">
            <a href="#title-link" class="">
                &nbsp;{$title}
            </a>
        </h1>

    </header>
    <div class="  am-list-news-bd" >

        <form class="am-form am-form-horizontal" action="{:U('Purchase/submitAllPurchase')}" method="POST">

            <ul class="am-list am-list-static am-list-border">
                <li>
                    <div class="am-g am-g-fixed">
                        <div class="am-u-sm-6">今日采购数量：{$_count}</div>
                        <div class="am-u-sm-6">待采购数量：{$_inPurCount}</div>
                    </div>
                </li>
                <li class="">
                    <div class="am-g am-g-fixed">
                        <div class="am-u-sm-3">名称</div>
                        <div class="am-u-sm-3">规格</div>
                        <div class="am-u-sm-3">数量</div>
                        <div class="am-u-sm-3">单价</div>
                    </div>
                </li>
                <volist name='_list' id='product' >
                    <li>
                        <div class="am-g am-g-fixed">
                            <div class="am-u-sm-3"><a href="{:U('Purchase/editpurchaselist?id='.$product['id'])}">{$product.proName}</a></div>
                            <div class="am-u-sm-3">{$product.head}头{$product.jin}斤</div>
                            <div class="am-u-sm-3">{$product.number}</div>
                            <div class="am-u-sm-3">{$product.price}</div>
                        </div>
                    </li>
                </volist>
                <li class="">
                    <div class="am-form-group">
                <label for="arriveTime" class="am-u-sm-3 am-form-label">预计到货时间</label>
                <div class="am-u-sm-9">
                    <input type="date" class="am-form-field" name="arriveTime" id="arriveTime" placeholder="输入预计到货时间" value="{$purchase.arriveTime}">
                    <input class="am-form-field" name="arriveTime" id="arriveTime" type="text" placeholder="输入预计到货时间" data-am-datepicker readonly required />
                </div>
            </div>
                </li>
            </ul>
            <div class="am-form-group  am-center">
                <div class="am-u-sm-12">
                    <button type="submit" class="am-btn am-btn-primary am-btn-block">提交至财务</button>
                </div>
            </div>
        </form>

    </div>
</block>